package User;

import Operation.IOperation;
import book.BookList;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-21
 * Time:21:15
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
    public User(String name){

        this.name = name;
    }

    public abstract int menu();

    public void DoOperation(int chioce, BookList bookList){

        this.iOperations[chioce].work(bookList);
    }
}
